const app = getApp();

var data = {
  xhx_images: app.xhx_images,
};

var currentPage = {
  data,
  onLoad,
  navigateBack: app.navigateBack,
  getUserInfo,
};

var page = Object.assign({}, currentPage);

Page(page);


function onLoad() {
  const that = this;
}

function getUserInfo() {
  const that = this;
  app.xlogin.reLogin(function (res) {
    if (!res) return;
    if (!res.telephone) {
      wx.redirectTo({
        url: app.xhx_route.mineBind,
      })
    } else {
      var prevPage = getCurrentPages();
      if (prevPage && prevPage.length > 1 && prevPage[prevPage.length - 2].loadInit) prevPage[prevPage.length - 2].loadInit();
      wx.navigateBack()
    }
  });
}
